package common.utils
{
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	import flash.display.Loader;

	public class XMLManager
	{
		public static function loadXML (path:String, nextFunc:Function):void
		{
			var loader:URLLoader = new URLLoader ();
			var req:URLRequest = new URLRequest (path);
			loader.addEventListener (Event.COMPLETE, nextFunc, false, 0, true);
			loader.load (req);
		}
	}
}